package com.qna.repository;


import java.util.List;

import org.springframework.stereotype.Repository;

import com.qna.pojo.Question;

@Repository("questionRepository")
public class QuestionRepository extends AbstractRepository<Question> {
    
	@SuppressWarnings("unchecked")
    public List<Question> getAll() {
        
        return entityManager.createQuery("SELECT * FROM question").getResultList();
        
    }
	
}
